﻿using Hotel.DAL;
using Hotel.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.BLL
{
    public class DisBLL
    {

        public DisBLL(DisDAL disDAL) 
        {
            DisDAL = disDAL;
        }

        public DisDAL DisDAL { get; }







        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="disCountModel"></param>
        /// <returns></returns>
        public int DisAdd(DisCountModel disCountModel)
        {

         
            return DisDAL.DisAdd(disCountModel);
        }





        /// <summary>
        /// 显示
        /// </summary>
        /// <param name="count"></param>
        /// <param name="page"></param>
        /// <param name="ShopName">门店名称</param>
        /// <param name="Titel">主题</param>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <returns></returns>

        public List<DisCountModel> DisCountList(out int count, out int page, string? ShopName = "-1", string? Titel = "", int index = 1, int size = 3)
        {


            return DisDAL.DisCountList(out count, out page, ShopName, Titel, index, size);
        }







        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DisCountDel(int id)
        {
           
            return DisDAL.DisCountDel(id);
        }







        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public DisCountModel DisCountAll(int id)
        {
            return DisDAL.DisCountAll(id);


        }



        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="disCountModel"></param>
        /// <returns></returns>
        public int DisCountUpd(DisCountModel disCountModel)
        {
          
            return DisDAL.DisCountUpd(disCountModel);


        }




    }
}
